package org.basic.mail.domain.vo;


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.basic.common.excel.annotation.ExcelDictFormat;
import org.basic.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.basic.mail.domain.SysMailTemplate;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 邮件模版视图对象 sys_mail_template
 *
 * @author Shao Hua
 * @date 2023-07-27
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysMailTemplate.class)
public class SysMailTemplateVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 模板名称
     */
    @ExcelProperty(value = "模板名称")
    private String name;

    /**
     * 模板编码
     */
    @ExcelProperty(value = "模板编码")
    private String code;

    /**
     * 发送的邮箱账号编号
     */
    @ExcelProperty(value = "发送的邮箱账号编号")
    private Long accountId;

    /**
     * 发送人名称
     */
    @ExcelProperty(value = "发送人名称")
    private String nickname;

    /**
     * 模板标题
     */
    @ExcelProperty(value = "模板标题")
    private String title;

    /**
     * 模板内容
     */
    @ExcelProperty(value = "模板内容")
    private String content;

    /**
     * 模板参数
     */
    @ExcelProperty(value = "模板参数")
    private String mailParams;

    /**
     * 开启状态
     */
    @ExcelProperty(value = "开启状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_mail_template")
    private Long status;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;


}
